var $border_color = "#efefef";
var $grid_color = "#ddd";
var $default_black = "#666";
var $red = "#eb4343";
var $blue = "#5da4cd";
var $green = "#abd14f";
var $yellow = "#ffaa3a";
var $yellow_one = "#FFF844";
var $grey = "#999999";
var $blue_one = "#74b1d4";
var $blue_two = "#84bad9";
var $blue_three = "#9bc7e0";
var $blue_four = "#afd2e6";
var $blue_five = "#badff2";


var $default_grey = "#ccc";
var $primary_color = "#428bca";
var $go_green = "#93caa3";
var $jet_blue = "#70aacf";
var $lemon_yellow = "#ffe38a";
var $nagpur_orange = "#fc965f";
var $ruby_red = "#fa9c9b";


//Data Tables
$(document).ready(function () {
    console.log("测试");
  $('#example').dataTable({
    "data": [
        {"route_id": 1,"route_name": '第一路线', "city": '武汉'},
        {"route_id": 23,"route_name": '第一路线', "city": '成都'},
        {"route_id": 5,"route_name": '第一路线', "city": '西安'},
        {"route_id": 1,"route_name": '第一路线', "city": '厦门'},
        {"route_id": 11,"route_name": '第一路线', "city": '天津'},
    ],
    "columns": [
        {"data": "route_id"},
        {"data": "route_name"},
        {"data": "city"}
    ],
    "sPaginationType": "full_numbers",
    // "sPaginationType": "bootstrap",
    "bPaginate": true, //翻页功能 
    "bLengthChange": true, //改变每页显示数据数量 
    "bFilter": true, //过滤功能 
    "bSort": false, //排序功能 
    "bInfo": true,//页脚信息 
    "bAutoWidth": true,//自动宽度
    "oLanguage": {
        "sLengthMenu": "每页显示 _MENU_ 条记录", 
        "sZeroRecords": "抱歉， 没有找到", 
        "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据", 
        "sInfoEmpty": "没有数据", 
        "oPaginate": {
            "sFirst": "首页",
            "sPrevious": "前一页",
            "sNext": "后一页",
            "sLast": "尾页"
        },
        "sZeroRecords": "没有检索到数据", 
        
    }
  });
  $("#data-table_length").css("display","none")
});
